package com.gisuni.sddc.platformManager.service;

import org.nutz.log.Log;
import org.nutz.log.Logs;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;

import com.gisuni.sddc.platformManager.dao.ProjectAttachmentDao;
import com.gisuni.sddc.platformManager.model.ProjectAttachment;

@IocBean
public class ProjectAttachmentService {
  
	private Log log=Logs.getLog(ProjectAttachmentService.class);
	
	@Inject
	private ProjectAttachmentDao projectAttachmentDao;

	public void addProjectAttachment(ProjectAttachment attachment) {
		projectAttachmentDao.addProjectAttachment(attachment);
	}

	public boolean deleteProjectAttachmentById(String id) {
		
		return projectAttachmentDao.deleteProjectAttachmentById(id);
	}

	public boolean updateAttachmentDownStatusById(String id, String status) {
		return projectAttachmentDao.updateAttachmentDownStatusById(id,status);
	}
}
